<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/12
 * Time: 10:10
 */
namespace app\common\validate;

use think\Validate;

class  Shop extends Validate{
    protected $rule = [
        'title' => 'require|max:30',
        'sort' => 'require|number',
        'content' => 'require',


    ];
    protected $message  =   [
        'title.require' => '标题必须',
        'title.max'     => '标题最多不能超过30个字符',
        'sort.require' => '排序必须',
        'sort.number' => '排序必须是数字',
        'content.require' => '描述必须',

    ];
}

